package cn.dgut.training.service;

import cn.dgut.training.dto.transaction.OrdersSubDTO;
import cn.dgut.training.entity.transaction.Orders;
import cn.dgut.training.entity.dto.OrdersDTO;
import cn.dgut.training.entity.vo.OrdersVO;
import cn.dgut.training.vo.CommonResponse;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

public interface IOrderService extends IService<Orders> {

//    OrdersVO createOrder(OrdersDTO ordersDTO); //创建订单

    IPage<OrdersVO> listOrderLimit(OrdersDTO ordersDTO); //分页显示订单

    OrdersVO selectOrderById(Long id);//通过id查找订单

    OrdersVO updateOrderStatus(OrdersDTO ordersDTO);//更改订单的状态

    CommonResponse submitOrders(OrdersSubDTO ordersSubDTO);//提交订单

    CommonResponse updateGroupOrderStatus(@RequestParam("orderId") Long orderId);

}
